<template>
  <el-table
      :data="tableData"
      style="width: 100%">
      <el-table-column
        prop="age"
        label="年龄"
        width="180">
      </el-table-column>
      <el-table-column
        prop="name"
        label="姓名"
        width="180">
      </el-table-column>
  
    </el-table>
</template>

<script>
 import {getAction} from '@/api/manage'
 export default {
      name: "test", 
      data() {
        return {
          tableData: [{
          
            name: '王小虎',
            age: '上海市普陀区金沙江路 1518 弄'
          }, {
          
            name: '王小虎',
            age: '上海市普陀区金沙江路 1517 弄'
          }, {
            
            name: '王小虎',
            age: '上海市普陀区金沙江路 1519 弄'
          }, {
            
            name: '王小虎',
            age: '上海市普陀区金沙江路 1516 弄'
          }]
        }
      },
      methods: {
        test() {
          var url = "/testw/getTestDate"
          getAction(url).then((res)=>{
            this.tableData = res.result;
          })
        }
      },
      created() {
      this.test();
      }
    }
</script>

<style scoped>

</style>